﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SpeedTestServerSetup
{
	public partial class Page6 : WizardPage
	{
        public override event StateChangeEvent ReadyStateChanged;
        
        public Page6()
		{
			InitializeComponent();
		}

        public override void LeavePage(WizardEvents e)
		{

		}

        public override void EnterPage(WizardEvents e)
		{
            if (ReadyStateChanged != null) { ReadyStateChanged.Invoke(true); }
		}

		private void HelpLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			string helpFile = String.Empty;
			if (sender == lnkAddSite) { helpFile = "AddSite.html"; }
			if (sender == lnkAddPortBindings) { helpFile = "AddPortBindings.html"; }
			if (sender == lnkAddMimeTypes) { helpFile = "AddMimeTypes.html"; }

			if (!String.IsNullOrEmpty(helpFile))
			{
				Help.OpenHtmlHelp(helpFile);
			}
		}
	}
}
